package com.gitee.designpattern.strategy;

import java.math.BigDecimal;

/**
 * 青铜用户支付策略
 *
 * @author codeboy zhou
 */
@UserVipLevel(UserVipLevelEnum.BRONZE)
public class BronzeUserPaymentStrategy implements UserPaymentStrategy {
    @Override
    public BigDecimal needPay(BigDecimal originalMoney) {
        return originalMoney.multiply(BigDecimal.valueOf(0.9));
    }
}
